from datetime import datetime
from typing import Optional
from pydantic import BaseModel, ConfigDict
from .base_schema import BaseSchema


class IPWhiteListBase(BaseSchema):
    ip_addr: str
    target_system: str
    status: int
    expire_time: Optional[datetime]
    


class IPWhiteListSchema(IPWhiteListBase):
    merc_no: Optional[str]
    merc_name: Optional[str]
    factor_no: Optional[str]
    create_time: Optional[datetime]
    update_time: Optional[datetime]
    